﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using Persistence;
using System.Data;

namespace BusinessLogic
{
    public class TeacherBL
    {
        public static long addTeacher(Teacher teacher)
        {
            return TeacherController.insertTeacher(teacher);
        }
        public static void updateTeacher(Teacher teacher)
        {
            TeacherController.updateTeacher(teacher);
        }
        public static void deleteTeacher(long vId)
        {
            TeacherController.deleteTeacher(vId);
        }
        public static Teacher getTeacherById(long vId)
        {
            return TeacherController.getTeacherById(vId);
        }
        public static DataTable getTeacherListBySearch(string vSearch)
        {
            return TeacherController.getTeacherListBySearch(vSearch);
        }
    }
}
